hFile: bitfield order assumed starting with LSB htsFile: bitfield order assumed starting with LSB hts_itr_t: bitfield order assumed starting with LSB hts_itr_multi_t: bitfield order assumed starting with LSB bam_pileup1_t: bitfield order assumed starting with LSB source/dhtslib/bgzf.d(71,109): Error: `@safe` destructor `dhtslib.bgzf.BGZFile.~this` cannot call `@system` function `std.string.fromStringz!char.fromStringz` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/string.d(222,15): `std.string.fromStringz!char.fromStringz` is declared here source/dhtslib/bgzf.d(91,13): Error: `@safe` function `dhtslib.bgzf.BGZFile.popFront` cannot call `@system` function `core.stdc.stdlib.free` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(164,9): `core.stdc.stdlib.free` is declared here source/dhtslib/bgzf.d(102,31): Error: `@safe` function `dhtslib.bgzf.BGZFile.front` cannot call `@system` function `std.string.fromStringz!char.fromStringz` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/string.d(222,15): `std.string.fromStringz!char.fromStringz` is declared here source/dhtslib/cigar.d(26,35): Error: pointer slicing not allowed in safe functions /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/ir.d(525,41): Error: `@safe` function `std.regex.internal.ir.RuntimeFactory!(BacktrackingMatcher, char).RuntimeFactory.construct` cannot call `@system` function `std.conv.emplace!(EngineType!(char, Input!char), const(Regex!char), Input!char, void[]).emplace` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/conv.d(4724,3): `std.conv.emplace!(EngineType!(char, Input!char), const(Regex!char), Input!char, void[]).emplace` is declared here /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/parser.d(36,28): Error: template instance `std.regex.internal.ir.RuntimeFactory!(BacktrackingMatcher, char)` error instantiating /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/parser.d(1025,25): instantiated from here: `makeRegex!(string, CodeGen)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(443,19): instantiated from here: `Parser!(string, CodeGen)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(391,25): instantiated from here: `regexImpl!string` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(399,17): instantiated from here: `regex!(string, immutable(char))` source/dhtslib/cigar.d(194,36): instantiated from here: `regex!string` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/ir.d(525,41): Error: `@safe` function `std.regex.internal.ir.RuntimeFactory!(ThompsonMatcher, char).RuntimeFactory.construct` cannot call `@system` function `std.conv.emplace!(EngineType!(char, Input!char), const(Regex!char), Input!char, void[]).emplace` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/conv.d(4724,3): `std.conv.emplace!(EngineType!(char, Input!char), const(Regex!char), Input!char, void[]).emplace` is declared here /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/parser.d(38,27): Error: template instance `std.regex.internal.ir.RuntimeFactory!(ThompsonMatcher, char)` error instantiating /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/internal/parser.d(1025,25): instantiated from here: `makeRegex!(string, CodeGen)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(443,19): instantiated from here: `Parser!(string, CodeGen)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(391,25): instantiated from here: `regexImpl!string` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(399,17): instantiated from here: `regex!(string, immutable(char))` source/dhtslib/cigar.d(194,36): instantiated from here: `regex!string` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(738,46): Error: template instance `std.regex.internal.ir.defaultFactory!char` error instantiating /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(962,47): instantiated from here: `__ctor!(Regex!char)` source/dhtslib/cigar.d(194,23): instantiated from here: `match!(string, Regex!char)` source/dhtslib/faidx.d(109,63): Error: cannot take address of local `fetchedLen` in `@safe` function `fetchSequence` source/dhtslib/faidx.d(111,33): Error: `@safe` function `dhtslib.faidx.IndexedFastaFile.fetchSequence` cannot call `@system` function `std.string.fromStringz!char.fromStringz` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/string.d(222,15): `std.string.fromStringz!char.fromStringz` is declared here source/dhtslib/faidx.d(112,13): Error: `@safe` function `dhtslib.faidx.IndexedFastaFile.fetchSequence` cannot call `@system` function `core.stdc.stdlib.free` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(164,9): `core.stdc.stdlib.free` is declared here source/dhtslib/faidx.d(201,27): Error: `@safe` function `dhtslib.faidx.IndexedFastaFile.seqName` cannot call `@system` function `std.string.fromStringz!char.fromStringz` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/string.d(222,15): `std.string.fromStringz!char.fromStringz` is declared here source/dhtslib/htslib/hfile.d(146,43): Error: pointer arithmetic not allowed in @safe functions source/dhtslib/htslib/hfile.d(216,11): Error: `@safe` function `dhtslib.htslib.hfile.hread` cannot call `@system` function `core.stdc.string.memcpy` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/string.d(42,7): `core.stdc.string.memcpy` is declared here source/dhtslib/htslib/hfile.d(217,14): Error: pointer arithmetic not allowed in @safe functions source/dhtslib/htslib/hfile.d(230,40): Error: pointer arithmetic not allowed in @safe functions source/dhtslib/htslib/hfile.d(244,27): Error: `@safe` function `dhtslib.htslib.hfile.hputs` cannot call `@system` function `core.stdc.string.strlen` /opt/dmd-safe/dmd/dmd-safe failed with exit code 1.